angular.module('faApp')
  .service('orderFollowUpService', [ 'ajaxService',function (ajaxService) {

    this.list = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("ORDER_LIST"),cfg || {});
    };  

    this.listByProId = function (cfg,id) {
      cfg.oProjectId=id;
      return ajaxService.jsonp(ajaxService.getApiUri("ORDER_PROID_LIST"),cfg || {});
    }; 
    
    this.query = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("ORDER_QUERY"),cfg || {});
    };  

    this.edit = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("ORDER_EDIT_STATUS"),cfg || {});
    };  
    
    this.updateDefriendStatus = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("ORDER_EDIT_DEFRIENDSTATUS"),cfg || {});
    };  
    
    this.queryOrderList=function(){
      return ajaxService.jsonp(ajaxService.getApiUri("ORDER_FOLLOW_UP_LIST"));
    } 

}]);
 



